
import 'package:flutter/material.dart';

class MenuWidget extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      title: 'Flutter Demo',
      theme: new ThemeData(
        primarySwatch: Colors.blue,
      ),
      debugShowCheckedModeBanner: false,
      home: new Scaffold(
      appBar: AppBar(
        // Here we take the value from the MyHomePage object that was created by
        // the App.build method, and use it to set our appbar title.
        title: Text('sub Widget'),
        backgroundColor: Colors.green,
      ),
        body: new Center(
//            child:new Text("menu")
          child: new RaisedButton(
            onPressed: () {
              Navigator.of(context).pop();
            },
            child: new Text("返回"),
            color: Colors.green,
            highlightColor: Colors.lightGreen[50],
          ),
        ),
      ),
    );
  }
}